{% load filters %}
    <h3 id="comments_title"{% if photo%} onclick="toggleComments()"{% endif %}><a name="comments">{{ comments.count|dgs:"Komentarai" }}</a></h3>
        {% for comment in comments %}
            {% ifequal comment.comment_type "linkback" %}
                <hr class="hidden">
                <div class="comment">
                    <div class="name">
                        <h4><a name="{{ forloop.counter }}" href="#{{ forloop.counter }}">{{ forloop.counter }}</a>. {% if comment.author_website %}<a href="{{ comment.author_website }}">{{ comment.author_name|safe }}</a>{% else %}{{ comment.author_name|safe }}{% endif %}</h4>
                        <small class="date"><em>{{ comment.date|date:"Y-m-d, H:i" }}</em></small>
                    </div>
                    <div class="text">
                        {% autoescape off %}<p>{{ comment.content|urlize|nl2br }}</p>{% endautoescape %}
                    </div>
                </div>
            {% else %}
                <hr class="hidden">
                <div class="comment">
                    <div class="name">
                        <img src="{{ comment.author_email|gravatar }}" alt="{{ comment.author_name }}">
                        <h4><a name="{{ forloop.counter }}" href="#{{ forloop.counter }}">{{ forloop.counter }}</a>. {% if comment.author_website %}<a href="{{ comment.author_website }}">{{ comment.author_name|safe }}</a>{% else %}{{ comment.author_name|safe }}{% endif %}</h4>
                        <small class="date"><em>{{ comment.date|date:"Y-m-d, H:i" }}</em></small>
                    </div>
                    <div class="text">
                        {% autoescape off %}<p>{{ comment.content|urlize|nl2br }}</p>{% endautoescape %}
                    </div>
                </div>
            {% endifequal %}
        {% endfor %}
        <hr class="hidden">


